<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Construct Web | Update SubCategory Form</title>
</head>
<body>
	<center>
		<div style="color: teal; font-size: 30px">Construct Web | Update
			SubCategory Form</div>
		<form:form id="updateSubCategoryForm" modelAttribute="subCategory"
			method="post" action="updateSubCategory">
			<table width="400px" height="150px">
				<tr>
					<td><form:label path="id">Id</form:label></td>
					<td><form:input path="id" value="${subCategoryObject.id}"
							readonly="true"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="name">Name</form:label></td>
					<td><form:input path="name" value="${subCategoryObject.name}"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="idCategory">Id Category</form:label></td>
					<%-- 					<td><form:input path="idCategory" --%>
					<%-- 							value="${subCategoryObject.idCategory}"></form:input></td> --%>
					<td><form:select path="idCategory">
							<form:options items="${categoryList}" itemValue="id"
								itemLabel="name" />
						</form:select></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Update"></input></td>
				</tr>
			</table>
		</form:form>

	</center>
</body>
</html>